﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<kysec.RAL.EFToMySql.tb_product>>"  ValidateRequest="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>AddNews</title>
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../../Content/back/css/op.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/back/css/skin.css" rel="stylesheet" type="text/css" />
    <script src="../../fckeditor/fckeditor.js" type="text/javascript"></script>
    <script src="../../Scripts/ajaxfileupload.js" type="text/javascript"></script>

    <%string type = Request.QueryString["type"].ToString();%>
    <script type="text/javascript">       
        function SubmitDemo() {
            $("form:first").submit();            
        }        
   </script>
</head>
<body>
<form runat="server" id="form1" method="post" enctype="multipart/form-data">
    <div>   <%string type = Request.QueryString["type"].ToString(); string id = Request.QueryString["id"]; %>
   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/left-top-right.gif") %>" width="17" height="29" /></td>
    <td width="100%" height="29" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/content-bg.gif") %>"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">新增样品</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/nav-right-bg.gif") %>" width="16" height="29" /></td>
  </tr>

  <tr>
    <td height="71" valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table border="0" cellpadding="0" cellspacing="0"> 
     <tr>
            <td class="left_txt">当前位置：<% if (type.Equals("0"))
                                        { %><a href="<%:kysec.CR.MyUrl.WebData.WEBURL %>/Product/InfoList?type=<%:type %>">最新产品列表</a><%}
                                        else
                                        { %><a href="<%:kysec.CR.MyUrl.WebData.WEBURL %>/Product/InfoList?type=<%:type %>">系列产品列表</a><%} %>  >>  新增样品演示</td>
      </tr></table>
   <div style="background-color:#97b9f0;height:1px;margin-bottom:10px;"></div>

        <div style="text-align:center;">
        <input id="c_i_type" name="c_i_type" value="<%:type %>" type="hidden"/>
           <div style="margin-top:10px; " >
            <table border="0" cellpadding="1" cellspacing="0" width="100%" >
            <tr><td colspan="2"><%foreach (var item in Model)
                                  {%>
                                      <div><span>产品名称：<font color="green"><%=item.c_vc_name %></font></span><span style="margin-left:20px;">产品型号：<font color="green"><%=item.c_vc_pModel %></font></span></div>
                                 </td></tr>
            <tr  style="height:50px;">
                <td width="5%"  bgcolor="#d3ebf8" ><div><label>功能</label></div></td>
                <td align="left"><div class="td_Left"><textarea id="c_ntx_pFunction" name="c_vc_pFunction" cols="100" rows="5"  readonly="readonly"><%=item.c_vc_pFunction %></textarea></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            </tr>
            <tr style="height:50px;" >
                <td width="5%" bgcolor="#97b9f0"><div><label>特点</label></div></td>
                <td align="left"><div class="td_Left"><textarea id="c_ntx_pFeatures" name="c_ntx_pFeatures" cols="100" rows="5"  readonly="readonly"><%=item.c_vc_pFunction %></textarea></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            </tr>
            <% } %>
            <tr style="height:250px;" >
                <td width="5%" bgcolor="#d3ebf8"><div><label>样品图片</label></div> </td>
                <td align="left" width="100%" height="100%">
                  <div class="add_picture">
                    <%=Html.FckEditor("imgPath", new FckConfig { Skin = FckSkin.Office2003, Width = "100%", Height = "400px", ToolbarSet = FckToolbarSet.Default })%>
                  </div>
                    </td>
            </tr>
            </table></div>
               <div style="background-color:#97b9f0;height:1px;margin-bottom:10px;"></div>
            <p>
                <a href="javascript:;" onclick="SubmitDemo();" style="margin:0px 20px 0px 0px;">确认添加</a>
                <a href="javascript:;" onclick="reSetForm();">重置</a>
            </p>
        </div>
     </td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_leftbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_left2.gif") %>" width="17" height="17" /></td>
      <td  valign="top" background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_bgs.gif") %>" width="17" height="17" /></td>
    <td background="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/mail_rightbg.gif") %>"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/back/images/buttom_right2.gif") %>" width="16" height="17" /></td>
  </tr>
</table> 
    </div>
</form>
</body>
</html>
